package com.woniu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author Gapper
 * @since 2021-03-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Units implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "Unit_ID", type = IdType.AUTO)
    private Integer unitId;

    @TableField("Building_ID")
    private Integer buildingId;

    @TableField("Unit_Name")
    private String unitName;

    @TableField("Add_Date")
    private Date addDate;

    @TableField("Versions")
    private Integer versions;
    //连接查询
    @TableField(exist = false)
    private Buildings buildings;


}
